package com.example.mapper;

import com.example.model.Course;
import com.example.model.Student;
import com.example.model.Teacher;
import org.apache.ibatis.annotations.Param;

public interface StudentMapper {
    //
    Student isStudent(@Param("number") String number, @Param("studentPassword") String studentPassword);
    void insertStudent(Student student);

    void changeStudentPassword(@Param("studentPassword") String studentPassword, @Param("number") String number);
    void changenumber(@Param("newnumber") String newnumber, @Param("oldnumber") String oldnumber);

    void changeStudentIdentity(@Param("identity") String identity, @Param("number") String number);

    Student findByNumber(@Param("number")String number);
//    学生选课返回课程信息
    Course selectByCourseId(@Param("courseId")String courseId);
}
